package com.imooc.feign;

import com.imooc.result.GraceJSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liansen
 * @create 02-24-16:42
 */
@FeignClient("work-service") //告诉SpringCloud容器, 本接口为调用远程工作简历微服务的接口组件(声明式客户端远程调用)
public interface WorkMicroServiceFeign {

    /**
     * 用户注册后初始化简历
     * @param userId
     * @return
     */
    @PostMapping("/resume/init")
    GraceJSONResult initResume(@RequestParam("userId") String userId);
}
